/*
 * Copyright 2018 Expedia Group
 *
 *         Licensed under the Apache License, Version 2.0 (the "License");
 *         you may not use this file except in compliance with the License.
 *         You may obtain a copy of the License at
 *
 *             http://www.apache.org/licenses/LICENSE-2.0
 *
 *         Unless required by applicable law or agreed to in writing, software
 *         distributed under the License is distributed on an "AS IS" BASIS,
 *         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *         See the License for the specific language governing permissions and
 *         limitations under the License.
 */
@import (reference) '../../../app';
@import (reference) '../../common/resultsTable';

.trends-panel {
  // overriding default styling for column filters
  th[data-field] {
    padding: 0 0 @spacing-s 0;

    input, select {
      font-size: 14px;
      height: 34px;
      padding-left: @spacing-xs;
      border: 1px solid @gray-mid-light;
      border-radius: 3px;
      background-color: white;
      color: @gray-darker;
    }
  }

  th[data-field="operationName"] input {
    width: 100%;
  }

  th[data-field="avgSuccessPercent"], th[data-field="totalCount"], th[data-field="latestTp99Duration"] {
    select {
      width: 40px !important;
      margin-left: @spacing-s;
      border-radius: 3px 0 0 3px;
    }

    input {
      width: calc(~"100% - 40px") !important;
      margin-left: 0 !important;
      border-left: 0;
      border-radius: 0 3px 3px 0;
    }
  }
}

.sparkline-container {
  .sparkline-title {
    padding-bottom: 6px;
    .table__secondary;
    text-align: right;
    b {
      font-size: @font-size-h6;
      font-weight: 600;
    }
    .sparkline-percentColor {
      &.green {
        color: @brand-success;
      }
      &.orange {
        color: darken(@brand-warning, 10%);
      }
      &.red {
        color: @brand-danger;
      }
    }
  }

  .sparkline-graph {
    height: 27px;
  }
}

